package com.ctz.commonframe.http;

import java.lang.reflect.Type;

import org.xutils.http.app.ResponseParser;
import org.xutils.http.request.UriRequest;

import com.alibaba.fastjson.JSON;
import com.ctz.commonframe.utils.Logger;

public class HttpResultParser implements ResponseParser{

	@Override
	public void checkResponse(UriRequest arg0) throws Throwable {
		
	}

	@Override
	public ResponseEntity parse(Type arg0, Class<?> arg1, String arg2) throws Throwable {
		Logger.e("response", arg2);
		return JSON.parseObject(arg2, ResponseEntity.class);
	}

}
